import abc.hd.com.dao.daouser;
import abc.hd.com.sersiona.aer;
import abc.hd.com.sersiona.sersiona.aerimpl;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith (SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"classpath*:abcd.xml"})
public class aaaa {

    @Autowired
    public aer zad;
    @Test
    public void a(){
        System.out.println (zad.allat ());
    }
    @Test
    public void b(){
        ApplicationContext ava=new ClassPathXmlApplicationContext ("abcd.xml");
        daouser bean = ava.getBean (daouser.class);
        System.out.println (bean.toString ());
    }
    @Test
    public void  c(){
        System.out.println (zad.allpagedata (1));

    }
}
